<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var a = prompt("请输入年月日：", "1991-01-01");
    alert(a);
//    console.log(a);
</script>
</body>
</html>